﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECare.BUS.Data
{
    public class ResoucesInfo
    {

        public int ResourceId { get; set; }
        public string ResourceCode { get; set; }
        public string ResourceName { get; set; }
        public string ResourceUnit { get; set; }
        public string ResourceTs { get; set; }
        public string ResourceSupply { get; set; }
        public string ResourceRegion { get; set; }

        public int ResouceValidate { get; set; }

        public byte[] ResouceImage { get; set; }

        public override string ToString()
        {
            if (string.IsNullOrEmpty(ResourceCode))
                return this.ResourceName;
            else
                return string.Format("{0}_{1}", ResourceCode, ResourceName);
        }
    }
}
